package com.qding.park.adapter.report.conf;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;

@Service
@Scope("singleton")
@DisconfFile(filename = "systemConfig.properties")
public class SystemConfig {
	
	/**
	 * 账号的ACCESS_KEY
	 */
	private  String accessKey;
	/**
	 * 账号的和SECRET_KEY
	 */
	private  String secretKey;
	/**
	 * 要上传的空间
	 */
	private  String bucketName;
	/**
	 * 上传域名
	 */
	private  String domain;
	
	private  Long tokenExpire;

	@DisconfFileItem(name = "qiniu.accessKey",associateField ="accessKey")
	public String getAccessKey() {
		return accessKey;
	}

	public void setAccessKey(String accessKey) {
		this.accessKey = accessKey;
	}

	@DisconfFileItem(name = "qiniu.secretKey",associateField ="secretKey")
	public String getSecretKey() {
		return secretKey;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

	@DisconfFileItem(name = "qiniu.bucketName",associateField ="bucketName")
	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	@DisconfFileItem(name = "qiniu.domain",associateField ="domain")
	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	@DisconfFileItem(name = "qiniu.token_expire",associateField ="tokenExpire")
	public Long getToken_expire() {
		return tokenExpire;
	}

	public void setToken_expire(Long token_expire) {
		this.tokenExpire = token_expire;
	}
	
	

}
